package louie.wendy.bootswagger.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;

@ApiModel(value = "user model")

@Data
public class User {
    /**
     * user's primary key
     */
    @ApiModelProperty(value = "用户id")
    private String userId;

    /**
     * user's name
     */
    @ApiModelProperty(value = "用户名")
    private String name;

    /**
     * user's age
     */
    @ApiModelProperty(value = "用户年龄")
    private int age;

    /**
     * user's birthday
     */
    @ApiModelProperty(value = "生日")
    private Date birthday;

    /**
     * user's role
     */
    @ApiModelProperty(value = "角色")
    private String role;

    /**
     * user's department
     */
    @ApiModelProperty(value = "部门")
    private String department;
}
